import myaxios from  '@/mytools/myaxios'
export function SearchPage(searchModel) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/RoleManager/SearchPage',
      method: 'post',
      data:searchModel
    })
  }
  
  export function GetRoleViewById(roleId) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/RoleManager/GetRoleViewById',
      method: 'get',
      params: { roleId: roleId },
    })
  }

  export function RoleDbAdd(roleInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/RoleManager/RoleDbAdd',
      method: 'post',
      data:roleInfo
    })
  }

  export function RoleDbUpdate(roleInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/RoleManager/RoleDbUpdate',
      method: 'post',
      data: roleInfo,
    })
  }

